// 封装页面请求
import request from '@/request/request.js'



//隐私协议
export const agreement = (params) => request({
	url: '/api/agreement',
	params
})

//登录
export const login = (data) => request({
	url: '/api/login',
	method: "post",
	data
})

//用户信息
export const getUserInfo = (params) => request({
	url: '/api/getUserInfo',
	params
})

//修改用户信息
export const updateUser = (data) => request({
	url: '/api/updateUser',
	method: "post",
	data
})
//绑定手机号
export const bindMoble = (data) => request({
	url: '/api/bindMoble',
	method: "post",
	data
})

//获取首页分类
export const getIndexProductType = (params) => request({
	url: '/api/getIndexProductType',
	params
})


//首页banner/我的服务-荣誉资质/企业图册
export const getBanner = (params) => request({
	url: '/api/getBanner',
	params
})
//获取产品类别
export const getProductType = (data) => request({
	url: '/api/getProductType',
	method: "post",
	data
})

//获取产品类别
export const getProductList = (params) => request({
	url: '/api/getProductList',
	params
})
//获取产品详情
export const getProduct = (params) => request({
	url: '/api/getProduct',
	params
})

//获取应用指南列表
export const getArticleList = (params) => request({
	url: '/api/getArticleList',
	params
})

//获取应用指南列表
export const getType = (data) => request({
	url: '/api/getType',
	method: "post",
	data
})

//获取应用指南详情
export const getArticle = (data) => request({
	url: '/api/getArticle',
	method: "post",
	data
})
//我的服务-企业介绍/联系方式
export const getPage = (params) => request({
	url: '/api/getPage',
	params
})


//获取单页列表
export const getPageList = (params) => request({
	url: '/api/getPageList',
	params
})

//获取质量等级列表
export const getQualityLevel = (params) => request({
	url: '/api/getQualityLevel',
	params
})

//获取质量等级列表
export const getHotList = (params) => request({
	url: '/api/getHotList',
	params
})

//获取质量等级列表
export const setting = (params) => request({
	url: '/api/setting',
	params
})

//获取单个图册信息
export const getBannerdetail = (params) => request({
	url: '/api/getBannerdetail',
	params
})

// export const soloSign = (data, params) => request({ url: '/train/user/solo/sign',method: "post", data, params})

export default { //再次暴露出去，两种方法暴露，方便引用
	bindMoble,
	agreement,
	login,
	getUserInfo,
	getIndexProductType,
	updateUser,
	getBanner,
	getProductType,
	getProductList,getProduct,
	getType,getArticleList,getArticle,
	getPage,getPageList,getQualityLevel,
	getHotList,setting,getBannerdetail
}